package user;

import book.BookList;
import bookoperations.IBookOperations;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-25
 * Time: 15:24
 */
public abstract class User {
    protected String name;//用户名
    public IBookOperations[] iBookOperations;

    public User(String name) {
        this.name = name;
    }

    abstract public int menu();

    public void doWork(int choice, BookList bookList){
        this.iBookOperations[choice].work(bookList);
    }
}
